package com.gaohe.post.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.gaohe.common.core.annotation.Excel;
import com.gaohe.common.core.web.domain.BaseEntity;

/**
 * 评论对象 fm_comment
 * 
 * @author ruoyi
 * @date 2025-06-03
 */
public class FmComment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 评论id */
    private Long commentId;

    /** 帖子id */
    @Excel(name = "帖子id")
    private Long postId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 评论内容 */
    @Excel(name = "评论内容")
    private String content;

    /** 配图 */
    @Excel(name = "配图")
    private String images;

    /** 是否一级评论 */
    @Excel(name = "是否一级评论")
    private Long isFirst;

    /** 上级评论id */
    @Excel(name = "上级评论id")
    private Long higherCommentId;

    /** 点赞量 */
    @Excel(name = "点赞量")
    private Long num;

    /** 是否删除 */
    private Long delFlag;

    public void setCommentId(Long commentId) 
    {
        this.commentId = commentId;
    }

    public Long getCommentId() 
    {
        return commentId;
    }

    public void setPostId(Long postId) 
    {
        this.postId = postId;
    }

    public Long getPostId() 
    {
        return postId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public void setImages(String images) 
    {
        this.images = images;
    }

    public String getImages() 
    {
        return images;
    }

    public void setIsFirst(Long isFirst) 
    {
        this.isFirst = isFirst;
    }

    public Long getIsFirst() 
    {
        return isFirst;
    }

    public void setHigherCommentId(Long higherCommentId) 
    {
        this.higherCommentId = higherCommentId;
    }

    public Long getHigherCommentId() 
    {
        return higherCommentId;
    }

    public void setNum(Long num) 
    {
        this.num = num;
    }

    public Long getNum() 
    {
        return num;
    }

    public void setDelFlag(Long delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Long getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("commentId", getCommentId())
            .append("postId", getPostId())
            .append("userId", getUserId())
            .append("content", getContent())
            .append("images", getImages())
            .append("isFirst", getIsFirst())
            .append("higherCommentId", getHigherCommentId())
            .append("num", getNum())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
